/*
 * Achieve it All! - Android app to motivate achieving your goals
 * Copyright (C) 2014  Xilconic
 * 
 * This file is part of Achieve it All!.
 *
 * Achieve it All! is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Achieve it All! is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Achieve it All!.  If not, see <http://www.gnu.org/licenses/>
 */
package com.xilconic.achieveitall.persist;

/**
 * All supported data type values for SQLite.
 * @author Xilconic
 * @see <a href="http://www.sqlite.org/datatype3.html">Datatypes In SQLite Version 3</a>
 *
 */
public enum SqliteDataType {
	/**
	 * A signed integer value.
	 */
	Integer("INTEGER"),
	/**
	 * A floating points value.
	 */
	Real("REAL"),
	/**
	 * A text string value.
	 */
	Text("TEXT"),
	/**
	 * A binary data blob value.
	 */
	Blob("BLOB"), 
	/**
	 * A primary key value.
	 */
	PrimaryKey("INTEGER PRIMARY KEY");
	
	private final String text;
	
	private SqliteDataType(final String text){
		this.text = text;
	}
	
	@Override
	public String toString(){
		return text;
	}
}
